package com.ys.entity.account;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_NeedPayAccountPayItem", catalog="Id")
public class TcwNeedPayAccountPayItem extends BaseEntity<TcwNeedPayAccountPayItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="NeedPayLedgerDetailId", nameJava="needPayLedgerDetailId", typeDataBase="bigint")
	private Long needPayLedgerDetailId;
	@YsField(nameDataBase="Amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwNeedPayAccountPayItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TcwNeedPayAccountPayItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Long getNeedPayLedgerDetailId() {
		return needPayLedgerDetailId;
	}
	public TcwNeedPayAccountPayItem setNeedPayLedgerDetailId(Long needPayLedgerDetailId) {
		this.needPayLedgerDetailId = needPayLedgerDetailId;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public TcwNeedPayAccountPayItem setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwNeedPayAccountPayItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwNeedPayAccountPayItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwNeedPayAccountPayItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwNeedPayAccountPayItem tcwNeedPayAccountPayItem(
		String pbid,
		Long needPayLedgerDetailId,
		BigDecimal amount,
		Integer status
			) {
		TcwNeedPayAccountPayItem entity = new TcwNeedPayAccountPayItem();
		entity.setPbid(pbid);
		entity.setNeedPayLedgerDetailId(needPayLedgerDetailId);
		entity.setAmount(amount);
		entity.setStatus(status);
		return entity;
	}
}